public class Student {
    private String name;
    private double score;

    // 构造方法
    public Student(String name, double score) {
        this.name = name;
        this.score = score;
    }

    // 姓名 getter
    public String getName() {
        return name;
    }

    // 姓名 setter
    public void setName(String name) {
        this.name = name;
    }

    // 成绩 getter
    public double getScore() {
        return score;
    }

    // 成绩 setter
    public void setScore(double score) {
        this.score = score;
    }

    // 判断成绩等级
    public String judgeGrade() {
        if (score >= 90) {
            return "优秀";
        } else if (score >= 80) {
            return "良好";
        } else if (score >= 60) {
            return "及格";
        } else {
            return "不及格";
        }
    }
}